All Functions of Week 3

geom_density

{GGPLOT2}

Generates a density plot

seq

{base}

Create a sequence

setwd

{base}

Set Working Directory

plot

{graphics}

Generic function from base R to produce a plot

rbeta

{stats}

Beta Random Number Generating Function

mean

{base}

Get mean of a vector

which.max

{base}

return index of the largest value in a vector

as.data.frame

{base}

Functions to check if an object is a data frame, or coerce it if possible.

str

{utils}

Get the structure of an R object

hist

{graphics}

Plot a simple histogram

order

{base}

Get indexes that will sort a vector

boxplot

{graphics}

Plot a simple box plot

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

c

{base}

Combine values/vectors into a vector

after_stat

{GGPLOT2}

Control aesthetic evaluation. On the module used for displying percent

ggplot

{GGPLOT2}

Create a ggplot graph

ggtitle

{GGPLOT2}

Generates a title for a ggplot graph

xlab

{GGPLOT2}

Label the x axis (ggplot)

names

{base}

Retrieve names of a list/vector

ylab

{GGPLOT2}

Label the y axis (ggplot)

grid.arrange

{gridExtra}

Places graphical objects into a rectangular grid

rnorm

{base}

Generate random numbers from a normal distribution

runif

{stats}

Draws ranndom numbers from the uniform distribution

library

{base}

Load an R package

attach

{base}

Attach Set of R Objects to Search Path

matrix

{base}

Creates a matrix from the given set of values.

tabulate

{base}

Counts the number of times each integer occurs in an integer-only vector

set.seed

{base}

Initialise a pseudorandom number generator.

get_mode

{rstatix}

Compute the mode in a given vector.

class

{base}

Retrieve class of an R object

theme_bw

{GGPLOT2}

A black and white ggplot theme

sample

{base}

Takes a sample of the specified size

unique

{base}

get unique elements

round

{base}

Rounds numbers

geom_histogram

{GGPLOT2}

Generates a histogram

read.spss

{foreign}

Read a .sav file (SPSS data)

The end!